package com.lagou.tp.service.impl;

import com.lagou.api.service.HelloService;
import org.apache.dubbo.rpc.RpcContext;

/**
 * @AUTHOR: yb.feng
 * @DATE: 2020/6/15 21:21
 * @DESC:
 */
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        String ip = RpcContext.getContext().getAttachment("ip");
        System.out.println("####" + ip);
        return "provider A hello :" + name;
    }
}
